<template>
	<div class="ai-body">
		<AiViewVue :listItem="listItem" title="智能医助" :type="1"></AiViewVue>
	</div>
</template>
<script>
	import {
		menuSelect
	} from '../../../api/menu';
	import AiViewVue from '../../ai/AiView.vue';
	export default {
		components: {
			AiViewVue
		},
		data() {
			return {
				listItem: [],

			}
		},

		mounted() {

			this.init();
		},
		methods: {

			init() {
				menuSelect({
					codes: ["aiGuidance"],
					status: 1,
					orderBy: 'sort'
				}).then(res => {
					console.log(res)
					res = res.aiGuidance;
					if (res.length > 0) {
						res.forEach(item => {
							if (item.parentId != 0) {
								this.listItem.push(item);
							}
						})
					}
				})
			},

		},
	}
</script>
<style scoped>

</style>